package demo1.old;

public class Car {
    private Framework framework;
    public Car(int size) {
        framework = new Framework(size);
    }

    public void init() {
        // 依赖车身
        System.out.println("执行了车的初始化，依赖车身");
        framework.init();
    }
}
